package com.daiqile.myinterest;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.daiqile.myinterest.activity.CoordinatorActivity;
import com.daiqile.myinterest.activity.FirstActivity;
import com.daiqile.myinterest.activity.ForthActivity;
import com.daiqile.myinterest.activity.MeActivity;
import com.daiqile.myinterest.activity.LoginActivity;
import com.daiqile.myinterest.activity.MainActivity;
import com.daiqile.myinterest.activity.MapActivity;
import com.daiqile.myinterest.activity.NextActivity;
import com.daiqile.myinterest.activity.SVGActivity;
import com.daiqile.myinterest.activity.ScrollColorChangeActivity;
import com.daiqile.myinterest.activity.ScrollNextActivity;
import com.daiqile.myinterest.activity.SecondActivity;
import com.daiqile.myinterest.activity.ShowActivity;
import com.daiqile.myinterest.activity.ThirdActivity;
import com.vondear.rxtools.RxBarTool;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MyMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_main);
        ButterKnife.bind(this);
        RxBarTool.setTransparentStatusBar(this);//状态栏透明化

    }

    @OnClick({R.id.bt_one, R.id.bt_two, R.id.bt_three, R.id.bt_four,R.id.bt_five, R.id.bt_six, R.id.bt_seven, R.id.bt_eight,R.id.bt_nine,R.id.bt_ten,R.id.bt_ele,R.id.bt_twl,R.id.bt_then,R.id.bt_fouren})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bt_one:
                startActivity(new Intent(MyMainActivity.this, MainActivity.class));
                break;
            case R.id.bt_two:
                startActivity(new Intent(MyMainActivity.this, FirstActivity.class));
                break;
            case R.id.bt_three:
                startActivity(new Intent(MyMainActivity.this, SecondActivity.class));
                break;
            case R.id.bt_four:
                startActivity(new Intent(MyMainActivity.this, NextActivity.class));
                break;
            case R.id.bt_five:
                startActivity(new Intent(MyMainActivity.this, ScrollColorChangeActivity.class));
                break;
            case R.id.bt_six:
                startActivity(new Intent(MyMainActivity.this, ThirdActivity.class));
                break;
            case R.id.bt_seven:
                startActivity(new Intent(MyMainActivity.this, ForthActivity.class));
                break;
            case R.id.bt_nine:
                startActivity(new Intent(MyMainActivity.this, ScrollNextActivity.class));
                break;
            case R.id.bt_ten:
                startActivity(new Intent(MyMainActivity.this, MapActivity.class));
                break;
            case R.id.bt_eight:
                startActivity(new Intent(MyMainActivity.this, CoordinatorActivity.class));
                break;
            case R.id.bt_ele:
                startActivity(new Intent(MyMainActivity.this, ShowActivity.class));
                break;
            case  R.id.bt_twl:
                startActivity(new Intent(MyMainActivity.this, SVGActivity.class));
                break;
            case  R.id.bt_then:
                startActivity(new Intent(MyMainActivity.this, LoginActivity.class));
                break;
            case  R.id.bt_fouren:
                startActivity(new Intent(MyMainActivity.this, MeActivity.class));
                break;
        }
    }


}
